#define entity #SYSTEM [系统]
#define entity #HIDDER [系统]
#define entity #SEEKER [系统]

# 获取全部总人数
execute store result score #SYSTEM MaxPlayer if entity @a
execute store result score #HIDDER MaxPlayer if entity @a[team=hidder]
execute store result score #SEEKER MaxPlayer if entity @a[team=seeker]

# 计时器
execute if score #SYSTEM GameStart matches 1 if score #SYSTEM Waittimer matches 1 run function mc:plugin/waittimer/timer
execute if score #SYSTEM GameStart matches 1 if score #SYSTEM GameTimer matches 1 run function mc:plugin/gametimer/timer
execute if score #SYSTEM GameStart matches 1 if score #SYSTEM GameTimer matches 1 run function mc:tell/timer/gametimer

#单名逃脱者阵亡-猎杀者获胜
execute if score #SYSTEM GameStart matches 1 if score #HIDDER MaxPlayer matches 1 if score #HIDDER MaxPlayer = #HIDDER hidder run function mc:defeat/hidder
execute if score #SYSTEM GameStart matches 1 if score #SYSTEM GameTimer matches 0 run function mc:defeat/seeker